* {
    margin: 0;
    padding: 0;
    list-style: none;
    --primary-color: #00b050;
    color: white;
    user-select: none;
    box-sizing: border-box;
}

a:link {
    color: var(--primary-color);
}

a:visited {
    color: var(--primary-color);
}

a:hover {
    color: var(--primary-color);
}

a:active {
    color: lightgray;
}

body {
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    position: absolute;
}

.app-container{
    width: 320px;
    height: 680px;
    position: relative;
    background-color: black;
    display: flex;
    flex-direction: column;
    z-index: 1;
}

#app {
    left: calc(50% - 160px);
    top: calc(50% - 340px);
    width: 320px;
    height: 680px;
    position: relative;
}

.statusbar {
    height: 40px;
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}

.timetext {
    font-size: 22px;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: bold;
}

.batterytext {
    margin: 4px;
    padding-bottom: 1px;
}

.powerarea {

    height: 140px;
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: center;
    padding-left: 16px;
    padding-right: 16px;
}

.powerarea1 {
    height: 100px;
    padding-top: 20px;
    align-items: center;
}


.powerarea2 {
    height: 40px;
    align-items: start;
    font-size: 18px;
}

.powerarea>div {
    width: 50%;
    display: flex;
    flex-direction: row;
    align-items: baseline;
    justify-content: center;
}

.powertext {
    font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
}

.modepanel {
    height: 66px;
    width: 100%;
    padding: 6px 6px 0px 6px;
}

.modepanel>div {
    border: solid var(--primary-color) 1px;
    padding: 2px;

    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

.modebutton {
    width: 50%;
    height: 50px;
    border: solid var(--primary-color) 1px;
    line-height: 47px;
    text-align: center;
    font-size: 20px;
    font-weight: 100;
}

.modebutton:active{
    background-color: rgb(56, 56, 56);
}

.modebutton-active {
    background-color: var(--primary-color);
}
.modebutton-active:active {
    background-color: var(--primary-color);
}

.title {
    height: 40px;
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding-left: 6px;
    padding-right: 18px;
    margin-bottom: 6px;
}

.title-left {
    height: 32px;
    line-height: 32px;
    padding-left: 8px;
    padding-right: 8px;
    font-size: 18px;
    font-weight: bold;
    flex-shrink: 0;
    background-color: var(--primary-color);
}

.exitgame{
    padding: 0px 6px 6px 6px;
}

.adjustment{
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    font-family:'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    font-size: 25px;
    font-weight: bold;
    margin-bottom: 6px;
}

.adjustment > p{
    flex-grow: 1;
    margin: 0px 6px;
    padding-left: 12px;
}

.adjustment > .button{
    width: 96px;
    margin: 0px 6px;
    flex-shrink: 0;
    font-size: 34px;
}

.scene-model{
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 0px 6px;
}

.scene-main{
    height: 50px;
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    margin-bottom: 6px;
}

.scene-name{
    flex-grow: 1;
    text-align: center;
    font-size: 24px;
    font-weight: 400;
    width: 202px;
}

.scene-divider{
    height: 100%;
    width: 1px;
    background-color: var(--primary-color);
}

.scene-tdp-info-container{
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    width: 102px;
}

.scene-tdp-info{
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

.scene-tdp-info-left{
    text-align: right;
    padding-right: 4px;
}

.scene-action{
    line-height: 50px;
}

.scene-empty{
    font-size: 42px;
    font-weight: 100;
    color: gray;
}

.manual-model{
    display: grid;
    grid-template-rows: repeat(2,50%);
    grid-template-columns: repeat(3,33.33%);
    width: calc(100% - 6px);
    height: calc(100% - 3px);
    margin-bottom: 6px;
    
}
.manual-mode-button{
    margin: 3px;
    border: solid var(--primary-color) 1px;
    font-family:'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    font-size: 20px;
    font-weight: bold;
    padding-top: 4px;
    padding-left: 4px;
    position: relative;
}

.manual-mode-button:active{
    background-color: rgb(53, 53, 53);
}


.manual-mode-button-active{
    background-color: var(--primary-color);
}


.manual-mode-button-active:active{
    background-color: var(--primary-color);
}

.manual-mode-button::before{
    width: 15px;
    height: 15px;
    position: absolute;
    right: -8px;
    bottom: -8px;
    content: "";
    background-color: black;
    border-left: solid var(--primary-color) 1px;
    transform: rotate(45deg);
    
}


.button{
    border: solid var(--primary-color) 3px;
    height: 44px;
    box-sizing: border-box;
    line-height: 37px;
    font-size: 16px;
    text-align: center;
}

.button:active{
    background-color: rgb(53, 53, 53);
}


.button-red{
    border: solid red 3px;
}


.flexgrow {
    flex-grow: 1;
}

.single-line {
    text-overflow: ellipsis;
    overflow: hidden;
    word-break: break-all;
    white-space: nowrap;
}

.main-model{
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;

}

.alertmask{
    position: absolute;
    z-index: 179;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.644);
    left: 0px;
    top: 0px;
}

.alertdialog {
    position: absolute;
    z-index: 180;
    width: 100vw;
    height: 220px;
    left: 0px;
    top: calc(50% - 110px - 5px);
    background-color: black;
    border-top: solid var(--primary-color) 2px;
    border-bottom: solid var(--primary-color) 2px;
    
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.dialoginner {
    width: calc(100% - 80px);
    height: clac(100% - 64px);
    padding-top: 40px;
    padding-bottom: 40px;
    text-align: center;
    font-family: fantasy;
    font-size: 24px;
    color: rgb(226, 226, 226);
}

.dialogbuttons {
    width: calc(100% - 50px);
    display: flex;
    flex-direction: row;
    justify-content: space-around;
}

.dialogbutton {
    font-size: 28px;
    font-family: fantasy;
    color: rgb(228, 228, 228);
    background-color: black;
    border: solid rgb(230, 230, 230) 3px;
    width: 96px;
    height: 54px;
}

.dialogbutton:active {
    background-color: rgb(71, 71, 71);
}

.dialogbuttondanger {

    border: solid rgb(168, 0, 0) 3px;
}